package com.informa.java.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Properties;

public class DateFormatFactory {
	
	private Properties dateFormats;
	
	public DateFormatFactory(Properties dateFormats) {
		this.dateFormats = dateFormats;
	}

	public DateFormat get(String formatName) {
		return new SimpleDateFormat(dateFormats.getProperty(formatName));
	}

}
